<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>student_login</title>
</head>
<body>
{#    <form action="{% url 'student_myapp:index' %}" method="get">#}
    <form action="{% url 'student_myapp:student_login' %}" method="post">
        {% csrf_token %}
        <p>
            <label>用户名：</label><input type="text" name="user", value="{{ user }}"/>
        </p>
        <p>
            <label>密&emsp;码：</label><input type="password" name="password", value="{{ pwd }}"/>
        </p>
        <p style="color: red">{{ hint }}</p>

        <p><a href="{% url 'student_myapp:resetpassword' %}">忘记密码？</a>
            &emsp;&emsp;&emsp;&emsp;
            <a href="{% url 'student_myapp:registered' %}">注&emsp;册</a>
        </p>
        <p>&emsp;&emsp;&emsp;&emsp;&emsp;<input type="submit" value="登录"/></p>
    </form>
</body>
</html>